echo off
if "%1"=="hide" goto CmdBegin
start mshta vbscript:createobject("wscript.shell").run("""%~0"" hide",0)(window.close)&&exit
:CmdBegin
for /f  %%a in  ('curl ipv4.icanhazip.com') do set public_ip=%%a 
echo.
echo.
echo public_ip :
echo %public_ip%
jmeter-server -Jserver.rmi.ssl.disable=true -Dserver.rmi.localport=1099 -Djava.rmi.server.hostname=%public_ip%
echo %public_ip%
pause